{//<?php defined('THINK_PATH') or exit; ?>模板安全代码}

<include file="Common@Coldwind/header" title="{:C('SITE_TITLE')}"/>

<div id="body"> 
    <div class="jumbotron" id="cloud" style="background:#8ec1da url('__PUBLIC__/coldwind/bg-clouds.png') no-repeat bottom;">
        <div class="container">
            <div class="page-header">
                <h1>ColdWind</h1>
            </div>
        </div>
    </div>
    <block name="body"></block>
</div><!--body-->

<footer class="text-center" id="bottom" style="
        width: 100%;
        background: #4a4a4a;
        color: white;
        padding: 20px 0;
        margin-top: 40px;
        ">
    <p>
        基于
        <a target="_blank" href="https://git.oschina.net/abelhalo/ColdWind" style="color: #66CCFF;">
            ColdWind开源项目
        </a>
        构建
    </p>
    <p>© 2015 <a target="_blank" href="http://www.air-soft.cn/" style="color: #66CCFF;">AirSoft</a>. All rights reserved.</p>
</footer>
<script>
    function fixBottom() {
        var infoHeight = document.getElementById("body").scrollHeight;
        var bottomHeight = document.getElementById("bottom").scrollHeight;
        var allHeight = document.documentElement.clientHeight;

        var bottom = document.getElementById("bottom");
        if ((infoHeight + bottomHeight) < allHeight) {
            bottom.style.position = "absolute";
            bottom.style.bottom = "0";
        } else {
            bottom.style.position = "";
            bottom.style.bottom = "";
        }

        setTimeout(function () {
            fixBottom();
        }, 10);
    }
    fixBottom();
</script>

<include file="Common@Coldwind/footer"/>